#{if (userRole == 'Retailer')}
    #{extends 'retailuser.html' /}
#{/if}
#{if (userRole == 'Club')}
    #{extends 'clubuser.html' /}
#{/if}

#{set 'subnavi'}
    #{navigation type:'sub'}
        <li class="#{if selected == 'list' } current-tab #{/if}"><a href="@{Discount.list()}">List</a></li>
        <li class="#{if selected == 'offer' } current-tab #{/if}"><a href="@{Discount.offer()}">Offer</a></li>
        <li class="#{if selected == 'approve' } current-tab #{/if}"><a href="@{Discount.approve()}">Approve #{if discountsWaitingCount ?: yes} (${discountsWaitingCount}) #{/if}</a></li>
    #{/ navigation}
#{/ set}

#{doLayout /}